package com.yq.bdm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.yq.bdm.dao.RolePermissionDao;
import com.yq.bdm.entity.RolePermissionEntity;
import com.yq.bdm.service.RolePermissionService;



@Service("rolePermissionService")
public class RolePermissionServiceImpl implements RolePermissionService {
	@Autowired
	private RolePermissionDao rolePermissionDao;
	
	@Override
	public RolePermissionEntity queryObject(Long id){
		return rolePermissionDao.queryObject(id);
	}
	
	@Override
	public List<RolePermissionEntity> queryList(Map<String, Object> map){
		return rolePermissionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return rolePermissionDao.queryTotal(map);
	}
	
	@Override
	public void save(RolePermissionEntity rolePermission){
		rolePermissionDao.save(rolePermission);
	}
	
	@Override
	public void update(RolePermissionEntity rolePermission){
		rolePermissionDao.update(rolePermission);
	}
	
	@Override
	public void delete(Long id){
		rolePermissionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		rolePermissionDao.deleteBatch(ids);
	}
	
}
